using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using DM.DAO;
using DM.Entity;

namespace DM.Web
{
    public partial class ViewDetail : System.Web.UI.UserControl
    {
        private TinTuc tintuc = new TinTuc();
        public TinTuc Tintuc
        {
            get { return tintuc; }
            set { tintuc = value; }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            HinhDAO _hinhDao = new HinhDAO();
            Hinh hinh = _hinhDao.Get(Tintuc);
            imgDetail.ImageUrl = "../"+hinh.Hinhurl;
            lbTitle.Text = Tintuc.Tieude;
            lbNgayDang.Text = tintuc.Ngaydang.ToString("dd-MM-yyy");
            lbContent.Text = Tintuc.Noidung;
        }
    }
}